package com.cgly.medical.service.impl;

import com.cgly.medical.mapper.CountMapper;
import com.cgly.medical.service.CountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CountServiceImpl implements CountService {

    @Resource
    CountMapper countMapper;

    //查询某一天的药品订单量
    @Override
    public Integer countDrugOrder(String day) {
        return countMapper.countDrugOrder(day);
    }

    //查询某一天的登录人数
    @Override
    public Integer countAccount(String day) {

        return countMapper.countAccount(day);
    }


    //查询某一天的就诊人数
    @Override
    public Integer countPatient(String day) {
        return countMapper.countPatient(day);
    }
}
